<?php

class DefaultController extends Controller{

	public function index(){
		$news = $this->loader->model('news');
		$href = Tools::get_href('?q=news/show/');
		$lastnews = $news->LastNews();
		foreach($lastnews as $key => $news){
			$hrefs[$key] = $href.$news['id'];
		}
		$this->smarty->assign('lastnews', $lastnews);
		$this->smarty->assign('title', 'Kémia éve - Főoldal');
		$this->smarty->assign('hrefs', $hrefs);
		$this->smarty->assign('teacher', $teacher);
	}
}

?>